<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>NOSQL数据源管理</title>
<link rel="stylesheet" href="/js/layui/css/layui.css" media="all">
<link rel="stylesheet" href="/js/layui/css/layui-global.css" media="all">
<link rel="stylesheet" href="/css/page/index.css">
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
		  <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
		  <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
		<![endif]-->
</head>

<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<table id="dbInfoTable" lay-filter="dataBaseInfo"></table>
	</div>
	<script type="text/html" id="toolbarDemo">
  <div class="layui-btn-container">
    <button class="layui-btn layui-btn-sm" lay-event="add">新增</button>
    <button class="layui-btn layui-btn-sm" lay-event="update">修改</button>
    <button class="layui-btn layui-btn-sm" lay-event="delete">删除</button>
  </div>
</script>
<div id="dataSoureInfoPanel">
<form class="layui-form layui-form-pane" lay-filter="dataSourceInfoFilter">
    <input type="hidden" id="dbInfoId">
  <div class="layui-form-item">
    <label class="layui-form-label">数据源名称</label>
    <div class="layui-input-block">
      <input type="text" id = "dbName" name="dbNameText" placeholder="请输入数据源名称" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">数据源密码</label>
    <div class="layui-input-block">
      <input type="password" id = "password" name="passText" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">数据源类型</label>
    <div class="layui-input-block">
    <input type="hidden" id="dbTypeResult">
      <select name="dbType" lay-verify="required" lay-filter="dbTypeFilter">
        <option value=""></option>
        <option value="redis">redis服务</option>
        <option value="membercache">membercache服务</option>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">数据源IP</label>
    <div class="layui-input-block">
      <input type="text" id = "dbAccessIp" name="dbAccessIpText" placeholder="请输入数据源IP" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">端口</label>
    <div class="layui-input-block">
      <input type="text" id = "port" name="dbPortText" placeholder="请输入端口" autocomplete="off" class="layui-input">
    </div>
  </div>
</form>
</div>
</body>
<script src="/js/layui/layui.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/page/dbInfoManager.js"></script>

</html>